import pandas as pd
import mysql.connector

def load_user_data():
    conn = mysql.connector.connect(
        host="localhost",
        user="root",
        password="123",
        database="user"
    )
    query = "SELECT * FROM user"
    return pd.read_sql(query, conn)

def load_product_data():
    conn = mysql.connector.connect(
        host="localhost",
        user="root",
        password="123",
        database="user"
    )
    query = "SELECT * FROM product"
    return pd.read_sql(query, conn)